package org.xmdl.silk.wrap;

import org.xmdl.silk.NumDouble;
import org.xmdl.silk.impl.NumDoubleImpl;
import org.xmdl.silk.visit.Visitor;

public class NumDoubleWrap extends NumDoubleImpl implements NumDouble, ExpressionWrap {

	private final NumDouble w;

	public NumDoubleWrap(NumDouble w) {
		this.w = w;
	}

	@Override
	public double getValue() {
		return w.getValue();
	}

	@Override
	public void setValue(double newValue) {
		w.setValue(newValue);
	}

	public boolean accept(Visitor visitor)
	{
		return (visitor.visit(this));
	}

}
